package com.daisuxia.constant;

import java.util.Map;

import com.daisuxia.back.utils.SysCacheUtils;
import com.daisuxia.web.pojo.BackConfigParams;

/**
 * Created by IntelliJ IDEA
 * User : zhangsh
 * Date : 2016/12/28 0028
 * Time : 13:58
 */
public class FuYouConstant {

    public static final String SUCCESS_CODE = "0000";
    public static final String TYPE = "10";
    public static final String VERSION = "2.0";
    public static final String LOGOTP = "1";
    public static final String IDTYPE = "1";
    public static final String SIGNTP = "md5";
    public static final String ENCTP_YES = "1";
    public static final String ENCTP_NO = "0";


    private static final String PAY_ACTION = "/h5pay/payAction.pay";
    
    private static final String QUERY_ORDER="/checkInfo/checkResult.pay";

    public static String getPayPath(){
        Map<String, String> keys = SysCacheUtils.getConfigParams(BackConfigParams.FUYOU);
        return keys.get("FUYOU_PATH") + PAY_ACTION;
    }
    
    public static String getQueryOrderPath(){
        Map<String, String> keys = SysCacheUtils.getConfigParams(BackConfigParams.FUYOU);
        return keys.get("FUYOU_PATH") + QUERY_ORDER;
    }

    
    public static String getMchntcd(){
        Map<String, String> keys = SysCacheUtils.getConfigParams(BackConfigParams.FUYOU);
        return keys.get("MCHNTCD");
    }

    public static String getKey(){
        Map<String, String> keys = SysCacheUtils.getConfigParams(BackConfigParams.FUYOU);
        return keys.get("KEY");
    }


}
